<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML>
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>设置周次</title>
    <link rel="stylesheet" href="css/m_ind.css">
<script type="text/javascript">
  function check(){
    var ftc = document.getElementById("af");
    if(ftc.maxTime.value == ""||isNaN(ftc.maxTime.value)){
      alert("请输入时长上限");
    } else if(ftc.maxTime.value.length > 2) {
    	alert("时长信息太大");
    }else{
      af.submit();
    }
  }
</script>
  </head>
  
  <body>
  <form action="Mmax" method="post" id="af" class="codrops-demos">
    <input type="text" placeholder="&nbsp;&nbsp;请填写当前时长上限（纯数字）" name="maxTime" />
    <a onClick="check();" >提交</a>
    <a href="master/index.jsp">返回</a>
</form>
<canvas id="canv"></canvas>
<script type="text/javascript" src="js/m_ind.js"></script>
  <h1 class="title">Set Time</h1>
  </body>
</html>
